// 查询店铺列表接口
const getStorePage = (params) => {
    return $axios({
        url: '/store/page',
        method: 'get',
        params
    })
}
//根据店铺ID查询所有菜品
const getDishByCategoryId = (categoryId) => {
    return $axios({
        url: `/store/${categoryId}`,
        method: 'get'
    })
}

//带条件分页查询
const getCategoryStorePage = (params) => {
    return $axios({
        url: '/categoryDetail/page',
        method: 'get',
        params
    })
}

//根据id查询所有店铺信息
const getCategoryDetailById = (id) => {
  return $axios({
    url: `/categoryDetail/one/${id}`,
    method: 'get'
  })
}

// 新增---添加员工
function addStore (params) {
    return $axios({
        url: '/categoryDetail',
        method: 'post',
        data: { ...params }
    })
}

// 修改---添加员工
function editStore (params) {
    return $axios({
        url: '/categoryDetail',
        method: 'put',
        data: { ...params }
    })
}
